package com.heima.zuoye.day02.yuangong;

public class Manager extends Employee{
    private Manager a;

//    public Manager(String name, String workId, String dept) {
//        super(name, workId, dept);
//    }


    public Manager(String name, String workId, String dept, Clerk a) {
        super(name, workId, dept);
    }

    public Manager() {
    }

    public Manager getA() {
        return a;
    }

    public void setA(Manager a) {
        this.a = a;
    }

    @Override
    public void showMsg() {
        System.out.println("职员：工号为 "+getWorkId()+ ",名字为 "+ getName() +"，部门为 "+ getDept() +", 他的经理名字是 "+getA().getName());
    }
}
